import request from '@/utils/request'
import Vue from 'vue'

// 获取广告账户列表
export const queryAdvaccountList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advaccountIndex,
        method: 'post',
        data,
    })
}
// 广告账户回显
export const queryAdvaccountDetail = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advaccountDetail,
        method: 'post',
        data,
    })
}
// 根据平台获取广告账户列表
export const getAdvistementList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.getAdvistementList,
        method: 'post',
        data,
    })
}

// 广告平台添加
export const advaccountAdd = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advaccountAdd,
        method: 'post',
        data,
    })
}
// 广告平台编辑
export const advaccountEdit = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advaccountEdit,
        method: 'post',
        data,
    })
}
// 广告平台列表
export const queryAdvplatformList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advplatformIndex,
        method: 'post',
        data,
    })
}
// 广告账户归属列表
export const queryAscriptionList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.ascriptionList,
        method: 'post',
        data,
    })
}

// 广告账户花费
export const queryAdvertisementList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advertisement,
        method: 'post',
        data,
    })
}
// 广告账户花费确认
export const advertisementConfirm = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advertisementConfirm,
        method: 'post',
        data,
    })
}
// 广告账户花费 - 导出
export const exportAdvertisement = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advertisementExport,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// 广告系列花费
export const queryAdvcampaignList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advcampaign,
        method: 'post',
        data,
    })
}
// 广告系列花费 - 导出
export const exportAdvcampaign = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advcampaignExport,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const exportAscription = data => {
    return request({
        url: Vue.prototype.$api.advertisement.ascriptionExport,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const advcampaignFind = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advcampaignFind,
        method: 'post',
        data,
    })
}
export const advcampaignAdd = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advcampaignAdd,
        method: 'post',
        data,
    })
}
export const advcampaignEdit = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advcampaignEdit,
        method: 'post',
        data,
    })
}

export const queryAdvaccountAbnormalList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advaccountAbnormal,
        method: 'post',
        data,
    })
}
export const advaccountAbnormalConfirm = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advaccountAbnormalConfirm,
        method: 'post',
        data,
    })
}
export const queryAdvinfoList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advinfo,
        method: 'post',
        data,
    })
}
export const queryCheckList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.checkIndex,
        method: 'post',
        data,
    })
}
export const checkExport = data => {
    return request({
        url: Vue.prototype.$api.advertisement.checkExport,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const queryCheckDetail = data => {
    return request({
        url: Vue.prototype.$api.advertisement.checkDetail,
        method: 'post',
        data,
    })
}
export const reCheck = data => {
    return request({
        url: Vue.prototype.$api.advertisement.reCheck,
        method: 'post',
        data,
    })
}
export const editAscription = data => {
    return request({
        url: Vue.prototype.$api.advertisement.editAscription,
        method: 'post',
        data,
    })
}
export const deleteAscription = data => {
    return request({
        url: Vue.prototype.$api.advertisement.deleteAscription,
        method: 'post',
        data,
    })
}

export const accountopeningList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.accountopeningList,
        method: 'post',
        data,
    })
}
export const accountopeningAdd = data => {
    return request({
        url: Vue.prototype.$api.advertisement.accountopeningAdd,
        method: 'post',
        data,
    })
}
export const accountopeningEdit = data => {
    return request({
        url: Vue.prototype.$api.advertisement.accountopeningEdit,
        method: 'post',
        data,
    })
}
export const accountopeningDetail = data => {
    return request({
        url: Vue.prototype.$api.advertisement.accountopeningDetail,
        method: 'post',
        data,
    })
}
export const proxyownershipList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.proxyownershipList,
        method: 'post',
        data,
    })
}
export const proxyownershipAdd = data => {
    return request({
        url: Vue.prototype.$api.advertisement.proxyownershipAdd,
        method: 'post',
        data,
    })
}
export const proxyownershipEdit = data => {
    return request({
        url: Vue.prototype.$api.advertisement.proxyownershipEdit,
        method: 'post',
        data,
    })
}
export const proxyownershipDetail = data => {
    return request({
        url: Vue.prototype.$api.advertisement.proxyownershipDetail,
        method: 'post',
        data,
    })
}
export const advplatformList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advplatformList,
        method: 'post',
        data,
    })
}
export const advplatformAdd = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advplatformAdd,
        method: 'post',
        data,
    })
}
export const advplatformEdit = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advplatformEdit,
        method: 'post',
        data,
    })
}
export const advplatformDetail = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advplatformDetail,
        method: 'post',
        data,
    })
}


export const accountopeningDel = data => {
    return request({
        url: Vue.prototype.$api.advertisement.accountopeningDel,
        method: 'post',
        data,
    })
}


export const proxyownershipDel = data => {
    return request({
        url: Vue.prototype.$api.advertisement.proxyownershipDel,
        method: 'post',
        data,
    })
}


export const advplatformDel = data => {
    return request({
        url: Vue.prototype.$api.advertisement.advplatformDel,
        method: 'post',
        data,
    })
}
export const queryExpertList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.queryExpertList,
        method: 'post',
        data,
    })
}
export const DetailExpert = data => {
    return request({
        url: Vue.prototype.$api.advertisement.DetailExpert,
        method: 'post',
        data,
    })
}
export const addExpert = data => {
    return request({
        url: Vue.prototype.$api.advertisement.addExpert,
        method: 'post',
        data,
    })
}
export const exportExpertList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.exportExpertList,
        method: 'post',
        data,
        responseType: 'blob',
    })
}

// add_material
export const addMaterial = data => {
    return request({
        url: Vue.prototype.$api.advertisement.add_material,
        method: 'post',
        data,
    })
}
// material_list
export const materialList = data => {
    return request({
        url: Vue.prototype.$api.advertisement.material_list,
        method: 'post',
        data,
    })
}